package com.qhit.jdbc.bean;

/**
 * 用户实体
 *
 * @author 村头老杨头
 * @version 1.0
 * @date 2021/9/24 16:45
 */
public class User {
    private Integer uid;
    private String username;
    private Integer age;

    public User() {
    }

    public User(Integer uid, String username, Integer age) {
        this.uid = uid;
        this.username = username;
        this.age = age;
    }

    public Integer getUid() {
        return uid;
    }

    public void setUid(Integer uid) {
        this.uid = uid;
    }

    public String getUsername() {
        return username;
    }

    public void setUsername(String username) {
        this.username = username;
    }

    public Integer getAge() {
        return age;
    }

    public void setAge(Integer age) {
        this.age = age;
    }

    public void show() {
        System.out.println("User{" +
                "uid=" + uid +
                ", username='" + username + '\'' +
                ", age=" + age +
                '}');
    }
}
